package co.edu.unal.geditor.controller.action.file;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;

import co.edu.unal.geditor.controller.App;

public class FileSave extends AbstractAction
{
	private static final long serialVersionUID = 1L;

	public FileSave()
	{
		super( "Save Drawing" );

		putValue( MNEMONIC_KEY, KeyEvent.CTRL_DOWN_MASK + KeyEvent.VK_S );
	}

	public void actionPerformed( ActionEvent e )
	{
		if ( App.getInstance().saveDocument() )
		{
			// ok
		}
	}
}
